package com.sxjh.entity.bo;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

// 化工原料采购
@Data
public class FinanceHgylCgBo {

  // 数据ID
  private Integer id;
  // 合同号
  private String contractNo;
  // 公司名称
  private String companyName;
  // 车牌号
  private String plateNumber;
  // 原发数量
  private BigDecimal netWeight;
  // 实收数量
  private BigDecimal weighbridgeWeight;
  // 实收数量
  private BigDecimal oldweighbridgeWeight;
  private BigDecimal oldnetWeight;
  // 结算单价
  private BigDecimal settlementPrice;
  // 拆单与被拆单的最高结算单价（仅用于扣款计算）
  private BigDecimal settlementPriceMax;
  // 质检结果
  private String result;
  // 供货日期
  private LocalDate factoryOutTime;
  // 每吨运费
  private BigDecimal freight;
  // 磅差
  private BigDecimal poundDifference;
  // 水分扣款
  private BigDecimal moistureDeduction;
  // 类型 0|正常数据,1|被拆单的数据,2|拆单出来的数据
  private Integer type;
//  供应商类型 直供厂1 贸易2
  private Integer types;

  public BigDecimal getOldnetWeight() {
    if ("".equals(oldnetWeight) || oldnetWeight == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return oldnetWeight;
  }

  public BigDecimal getOldweighbridgeWeight() {
    if ("".equals(oldweighbridgeWeight) || oldweighbridgeWeight == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return oldweighbridgeWeight;
  }

  public BigDecimal getNetWeight() {
    if ("".equals(netWeight) || netWeight == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return netWeight;
  }

  public BigDecimal getWeighbridgeWeight() {
    if ("".equals(weighbridgeWeight) || weighbridgeWeight == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return weighbridgeWeight;
  }

  public BigDecimal getSettlementPrice() {
    if ("".equals(settlementPrice) || settlementPrice == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return settlementPrice;
  }

  public BigDecimal getSettlementPriceMax() {
    if ("".equals(settlementPriceMax) || settlementPriceMax == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return settlementPriceMax;
  }

  public BigDecimal getFreight() {
    if ("".equals(freight) || freight == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return freight;
  }

  public BigDecimal getPoundDifference() {
    if ("".equals(poundDifference) || poundDifference == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return poundDifference;
  }

  public BigDecimal getMoistureDeduction() {
    if ("".equals(moistureDeduction) || moistureDeduction == null) {
      return new BigDecimal(0.00);//去除该属性的前后空格并进行非空非null判断
    }
    return moistureDeduction;
  }
}
